from pydantic import BaseModel, Field
from datetime import datetime


class Dept(BaseModel):
    """
    部门的数据模型
    """

    id: int | None = Field(default=None, description="部门id")
    name: str
    createTime: datetime | None = Field(default=None, description="创建时间")
    updateTime: datetime | None = Field(
        default_factory=datetime.now, description="更新时间"
    )
